<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model
{
    protected $guarded = [];

    //Relation
    public function author()
    {
        return $this->belongsTo('App\User','userid');
    }

    public function task()
    {
        return $this->belongsTo('App\Tasks','taskid');
    }
}
